package com.taldh.design.patterns.statemachine.impl;

/**
 * date 2020/6/4
 *
 * @author 袁小黑
 * @version 1.0.0
 **/

public enum OrderStatusEnum {
    WAIT_PAY(0, "未支付"),
    PAYING(1, "支付中"),
    PAY_FAILED(2, "支付失败"),
    WAIT_SHIPPING(3, "待发货"),
    SHIPPING(4, "发货"),
    CONFIRM_RECEIVE(5, "完成订单"),
    RECEIVE_FAILED(6, "发货失败")
    ;

    int code;
    String msg;

    OrderStatusEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }
}
